import request from '@/request/request.js';

// 待办事项统计
export const getStatistics = () => {
	return request({
		url: `/maintenance/app/homePage/todo/items/statistics`,
		method: 'get',
	}, false)
}

// 获取日程日期标记
export const getDateMarks = (data) => {
	return request({
		url: `/maintenance/app/work/order/operate/marks`,
		method: 'get',
		data
	}, false)
}

// 获取日程列表
export const getDateSchedules = (data) => {
	return request({
		url: `/maintenance/app/work/order/schedule`,
		method: 'get',
		data
	}, false)
}

// 本人考勤标记列表
export const getClockInMarkList = (data) => {
	return request({
		url: `/maintenance/app/clockIn/record/markList`,
		method: 'get',
		data
	}, false)
}

// 本人打卡记录
export const getClockInList = (data) => {
	return request({
		url: `/maintenance/app/clockIn/record/list`,
		method: 'get',
		data
	}, false)
}

// 新增打卡记录
export const addClockInRecord = (data) => {
	return request({
		url: `/maintenance/app/clockIn/record`,
		method: 'post',
		data
	})
}

// 修改打卡记录
export const updateClockInRecord = (data) => {
	return request({
		url: `/maintenance/app/clockIn/record`,
		method: 'put',
		data
	})
}


// 打卡记录详情
export const getClockInfo = (id) => {
	return request({
		url: `/maintenance/app/clockIn/record/${id}`,
		method: 'get',
	})
}